package com.juben.svr.domain;


import com.juben.svr.domain.Enum.WorkScriptState;
import com.juben.svr.domain.Enum.WorkWstate;

import javax.persistence.*;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import java.awt.*;
import java.util.Set;


public class UWorks  {
    private String WID;
    private String Wname;
    private Integer typeID; // 作品类型
    private String Wstate;  // 作品状态
    private String Wimage ; // 作品封面
    private String Copyright;   // 版权
    private String Record;
    private String Wdate;   // 作品创建时间
    private String Wnowdate;    // 更新时间
    private  Integer UID;   // 用户id

    private  Integer Time;   // 授权时长

    private  String platform;   //授权平台

    private  String age_limit;   //授权年限

    private  Integer Authorization_fee;   // 授权费用
    private Integer auditorID;  // 审核员id
    private String Reason_review;   // 审核不通过原因
    private String Reason_notes;    // 备注
    private  Integer reda;
    private Integer arrange;
    private Integer like;
    private  String WDtitle;
    private String introduction;
    private String Wddata;
    private String Pname;
    private String script_state;
    private Integer ZID;

    private  String themename;

    private String release_time;

    private String screenwriterBio;
    private String uname;

    private Integer money;



    private Set<Integer> labelIds;// 通常也包括 labels 的属性，如果讨论在关系中

    public Set<Integer> getLabelIds() {
        return labelIds;
    }

    public void setLabelIds(Set<Integer> labelIds) {
        this.labelIds = labelIds;
    }


    public String getWID() {
        return WID;
    }

    public void setWID(String WID) {
        this.WID = WID;
    }

    public String getWname() {
        return Wname;
    }

    public void setWname(String wname) {
        this.Wname = wname;
    }

    public Integer getTypeID() {
        return typeID;
    }

    public void setTypeID(Integer typeID) {
        this.typeID = typeID;
    }

    public String getWimage() {
        return Wimage;
    }

    public void setWimage(String wimage) {
        Wimage = wimage;
    }

    public String getCopyright() {
        return Copyright;
    }

    public void setCopyright(String copyright) {
        Copyright = copyright;
    }

    public String getRecord() {
        return Record;
    }

    public void setRecord(String record) {
        Record = record;
    }

    public String getWdate() {
        return Wdate;
    }

    public void setWdate(String wdate) {
        Wdate = wdate;
    }

    public String getWnowdate() {
        return Wnowdate;
    }

    public void setWnowdate(String wnowdate) {
        Wnowdate = wnowdate;
    }

    public Integer getUID() {
        return UID;
    }

    public void setUID(Integer UID) {
        this.UID = UID;
    }

    public Integer getAuditorID() {
        return auditorID;
    }

    public void setAuditorID(Integer auditorID) {
        this.auditorID = auditorID;
    }

    public String getReason_review() {
        return Reason_review;
    }

    public void setReason_review(String reason_review) {
        Reason_review = reason_review;
    }

    public String getReason_notes() {
        return Reason_notes;
    }

    public void setReason_notes(String reason_notes) {
        Reason_notes = reason_notes;
    }

    public Integer getTime() {
        return Time;
    }

    public void setTime(Integer time) {
        Time = time;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getAge_limit() {
        return age_limit;
    }

    public void setAge_limit(String age_limit) {
        this.age_limit = age_limit;
    }

    public Integer getAuthorization_fee() {
        return Authorization_fee;
    }

    public void setAuthorization_fee(Integer authorization_fee) {
        Authorization_fee = authorization_fee;
    }

    public Integer getReda() {
        return reda;
    }

    public void setReda(Integer reda) {
        this.reda = reda;
    }

    public Integer getArrange() {
        return arrange;
    }

    public void setArrange(Integer arrange) {
        this.arrange = arrange;
    }

    public Integer getLike() {
        return like;
    }

    public void setLike(Integer like) {
        this.like = like;
    }

    public String getWDtitle() {
        return WDtitle;
    }

    public void setWDtitle(String WDtitle) {
        this.WDtitle = WDtitle;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getWddata() {
        return Wddata;
    }

    public void setWddata(String wddata) {
        Wddata = wddata;
    }

    public String getPname() {
        return Pname;
    }

    public void setPname(String pname) {
        Pname = pname;
    }

    public Integer getZID() {
        return ZID;
    }

    public void setZID(Integer ZID) {
        this.ZID = ZID;
    }

    public String getScreenwriterBio() {
        return screenwriterBio;
    }

    public void setScreenwriterBio(String screenwriterBio) {
        this.screenwriterBio = screenwriterBio;
    }

    public String getRelease_time() {
        return release_time;
    }

    public void setRelease_time(String release_time) {
        this.release_time = release_time;
    }

    public String getThemename() {
        return themename;
    }

    public void setThemename(String themename) {
        this.themename = themename;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "UWorks{" +
                "WID='" + WID + '\'' +
                ", Wname='" + Wname + '\'' +
                ", typeID=" + typeID +
                ", Wstate='" + Wstate + '\'' +
                ", Wimage='" + Wimage + '\'' +
                ", Copyright='" + Copyright + '\'' +
                ", Record='" + Record + '\'' +
                ", Wdate='" + Wdate + '\'' +
                ", Wnowdate='" + Wnowdate + '\'' +
                ", UID=" + UID +
                ", Time=" + Time +
                ", platform='" + platform + '\'' +
                ", age_limit='" + age_limit + '\'' +
                ", Authorization_fee=" + Authorization_fee +
                ", auditorID=" + auditorID +
                ", Reason_review='" + Reason_review + '\'' +
                ", Reason_notes='" + Reason_notes + '\'' +
                ", reda=" + reda +
                ", arrange=" + arrange +
                ", like=" + like +
                ", WDtitle='" + WDtitle + '\'' +
                ", introduction='" + introduction + '\'' +
                ", Wddata='" + Wddata + '\'' +
                ", Pname='" + Pname + '\'' +
                ", script_state='" + script_state + '\'' +
                ", ZID=" + ZID +
                ", themename='" + themename + '\'' +
                ", release_time='" + release_time + '\'' +
                ", screenwriterBio='" + screenwriterBio + '\'' +
                ", uname='" + uname + '\'' +
                ", money='" + money + '\'' +
                ", labelIds=" + labelIds +
                '}';
    }

    //    public String getWstate() {
//        return Wstate;
//    }
//
//    public void setWstate(String wstate) {
//        Wstate = wstate;
//    }

    public WorkWstate getWorkWstate() {
        return WorkWstate.fromValue(Wstate);
    }
    public void setWorkWstate(WorkWstate wstate) {
        Wstate = wstate.getValue();
    }

//    public void setScript_state(String script_state) {
//        this.script_state = script_state;
//    }
//
//    public String getScript_state() {
//        return script_state;
//    }
    public WorkScriptState getWorkScriptState() {
        return WorkScriptState.fromValue(script_state);
    }
    public void setScriptState(WorkScriptState ScriptState){
        script_state = ScriptState.getValue();
    }

}
